package book;

public class BookList {

        private Book[]books ;
        private  int useSize;  //记录当前 书架上书的数量
   public Booklist(){
        this.books = new Book[10];
    }

        public int getUseSize() {
        return useSize;
    }

        public void setUseSize(int useSize) {
        this.useSize = useSize;
    }

        public Book getBook(int pos){
        return books[pos];
    }
        public void setBook(int pos,Book book){
        books[pos]=book;
    }
    }

